#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<stdlib.h>
#include <time.h>
//递归和非递归分别实现strlen
int  Fun(char* n)
{
    int count = 0;
    if (*n !='\0')
    {
        count++;
        return Fun(n+1)+1;
    }
    else
        return count;

}
int main()
{   
    int a = 0;
    char arr[] = "OMG";
    int ret = Fun(arr);
    printf("%d ", ret);

    return 0;
}



